package org.beanutopia.example;

import org.beanutopia.PropertyUtils;
import org.beanutopia.UpdatableProperty;

/**
 * @author ymeymann
 * @since Feb 26, 2007 9:49:54 AM
 */
public class Box extends Rectangle {
  private static final long serialVersionUID = -143255935385213796L;
  //Box<D extends Box> extends Rectangle<D>
  @SuppressWarnings({"serial"})
  interface Properties extends Rectangle.Properties {
    UpdatableProperty<Box, Integer> height = new UpdatableProperty<Box, Integer>() {};
  }

  public Box(UpdatableProperty<? super Box, ?>.Value... args) {
    PropertyUtils.populate(this, args);
  }

}
